import java.util.Arrays;
import java.util.Random;

public class Main {
    public static void main(String[] args) {
        int[] arr = new int[]{2, 3, 4, 5};
//        int count = new Random().nextInt(10) + 1;
        for (int i = 0; i < 10; i ++) {
            randSort(arr);
        }
        System.out.println(Arrays.toString(arr));
    }

    // 打乱数组
    public static void randSort(int[] arr) {
        Random random = new Random();
        for (int i = 0; i < arr.length; i++) {
            int number = random.nextInt(4);
            int temp = arr[i];
            arr[i] = arr[number];
            arr[number] = temp;
        }
    }
}